package com.edu.hre.struts.form.pim;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.apache.struts.action.ActionForm;
import org.apache.struts.upload.FormFile;
import org.apache.struts.util.LabelValueBean;

import com.edu.hre.common.utils.CommonUtils;

public class EmpPersonalDetailUpdateForm extends ActionForm {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6056273106708257020L;

	private Integer empNumber;
    private String empFirstname = "";
    private String empLastname = "";
    private String empMiddleName = "";
    private String idCardNumber = "";
    private Date idCardDateIssued;
    private String idCardLocationIssued = "";
    private short gender = 0;
    private String marriedStatus = "";
    private int nationality = 0;
    private Date dateOfBirth;
    private String nickName = "";
    private String militaryService = "";
    private FormFile image = null;
    private boolean success = false;
    private boolean updatable = false;
    
    private List<LabelValueBean> allMaritalStatuses = new ArrayList<LabelValueBean>();
    private List<LabelValueBean> allGenders = new ArrayList<LabelValueBean>();
    private List<LabelValueBean> allNationalities = new ArrayList<LabelValueBean>();

    private boolean isAddNew = true;
    private String message = "";
    
	public Integer getEmpNumber() {
		return empNumber;
	}

	public void setEmpNumber(Integer empNumber) {
		this.empNumber = empNumber;
	}

	public String getEmpFirstname() {
		return empFirstname;
	}

	public void setEmpFirstname(String empFirstname) {
		this.empFirstname = empFirstname;
	}

	public String getEmpLastname() {
		return empLastname;
	}

	public void setEmpLastname(String empLastname) {
		this.empLastname = empLastname;
	}

	public String getEmpMiddleName() {
		return empMiddleName;
	}

	public void setEmpMiddleName(String empMiddleName) {
		this.empMiddleName = empMiddleName;
	}

	public String getIdCardNumber() {
		return idCardNumber;
	}

	public void setIdCardNumber(String idCardNumber) {
		this.idCardNumber = idCardNumber;
	}

	public String getIdCardDateIssued() {
		return CommonUtils.dateToString(idCardDateIssued);
	}

	public void setIdCardDateIssued(String idCardDateIssued) {
		this.idCardDateIssued = CommonUtils.stringToDate(idCardDateIssued);
	}

	public String getIdCardLocationIssued() {
		return idCardLocationIssued;
	}

	public void setIdCardLocationIssued(String idCardLocationIssued) {
		this.idCardLocationIssued = idCardLocationIssued;
	}

	public short getGender() {
		return gender;
	}

	public void setGender(short gender) {
		this.gender = gender;
	}

	public String getMarriedStatus() {
		return marriedStatus;
	}

	public void setMarriedStatus(String marriedStatus) {
		this.marriedStatus = marriedStatus;
	}

	public int getNationality() {
		return nationality;
	}

	public void setNationality(int nationality) {
		this.nationality = nationality;
	}

	public String getDateOfBirth() {
		return CommonUtils.dateToString(dateOfBirth);
	}

	public void setDateOfBirth(String dateOfBirth) {
		this.dateOfBirth = CommonUtils.stringToDate(dateOfBirth);
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public List<LabelValueBean> getAllMaritalStatuses() {
		return allMaritalStatuses;
	}

	public void setAllMaritalStatuses(List<LabelValueBean> allMaritalStatuses) {
		this.allMaritalStatuses = allMaritalStatuses;
	}

	public List<LabelValueBean> getAllNationalities() {
		return allNationalities;
	}

	public void setAllNationalities(List<LabelValueBean> allNationalities) {
		this.allNationalities = allNationalities;
	}

	public boolean isAddNew() {
		return isAddNew;
	}

	public void setAddNew(boolean isAddNew) {
		this.isAddNew = isAddNew;
	}
	
	public boolean getIsAddNew() {
		return isAddNew;
	}

	public void setIsAddNew(boolean isAddNew) {
		this.isAddNew = isAddNew;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public List<LabelValueBean> getAllGenders() {
		return allGenders;
	}

	public void setAllGenders(List<LabelValueBean> allGenders) {
		this.allGenders = allGenders;
	}

	public String getMilitaryService() {
		return militaryService;
	}

	public void setMilitaryService(String militaryService) {
		this.militaryService = militaryService;
	}

	public FormFile getImage() {
		return image;
	}

	public void setImage(FormFile image) {
		this.image = image;
	}

	public boolean isSuccess() {
		return success;
	}
	
	public boolean getSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public boolean isUpdatable() {
		return updatable;
	}
	
	public boolean getUpdatable() {
		return updatable;
	}

	public void setUpdatable(boolean updatable) {
		this.updatable = updatable;
	}
}
